package com.dscs.mapper;

import com.dscs.domain.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 叶雪娟
 * @date 2019/7/16
 **/
@Mapper
public interface RoleMapper {
    /**
     * @return List<Role>
     */
    List<Role> queryAllRole();

    long insertRole(@Param("role") Role role);

    long deleteRole(@Param("id") Long id);

    long updateRole(@Param("role") Role role);

}
